// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

// 分页获取数据
export const getSchoolPersonInfoList = params => {
    return postRequest('/schoolPersonInfo/getByPage', params);
};
// 添加
export const addSchoolPersonInfo = params => {
    return postRequest('/schoolPersonInfo/insertOrUpdate', params);
};
// 编辑
export const editSchoolPersonInfo = params => {
    return postRequest('/schoolPersonInfo/insertOrUpdate', params);
};
// 删除
export const deleteSchoolPersonInfo = params => {
    return postRequest('/schoolPersonInfo/delByIds', params);
};

// 启用
export const enableSchoolPersonInfo = (id, params) => {
    return postRequest(`/schoolPersonInfo/enable/${id}`, params);
};

// 禁用
export const disableSchoolPersonInfo = (id, params) => {
    return postRequest(`/schoolPersonInfo/disable/${id}`, params);
};
